package com.dongdongshop.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dongdongshop.data.Result;
import com.dongdongshop.service.mail_quartz.MailQuartzService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("quartz")
public class QuartzMail {
    @Reference
    private MailQuartzService mailQuartzService;
    @RequestMapping("sendMail")
    @ResponseBody
    public Result sendMail(){
        mailQuartzService.mailQuartz();
        return Result.ok();
    }
}
